package com.study;

import com.study.service.HelloWorld;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        ApplicationContext app =new ClassPathXmlApplicationContext("spring-config.xml");
        HelloWorld helloWorld = app.getBean("helloWorld", HelloWorld.class);
        helloWorld.printHelloWorld();
        helloWorld.doPrint();
    }
}